
import org.huang.sample10.AppServer;
import org.huang.sample10.demo1.Dept;
import org.huang.sample10.demo1.DeptMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import javax.annotation.Resource;
import java.util.List;

/**
 * @描述:
 * @作者 Mr.Huang
 * @创建时间 2017-08-07
 * @版本: 1.0
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = AppServer.class)
public class SpringBootTestMybatis {

    @Resource
    private DeptMapper deptMapper;

    @Test
    public void test_deptMapper(){
        List<Dept> all = deptMapper.findAll();
        System.out.println(all);
    }


}
